package com.htjc.uep.center;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;


/**
 * 启动类
 * @author yao_xh
 */
@SpringBootApplication
@ComponentScan("com.htjc")
@MapperScan("com.htjc.uep.center.*.mapper")
public class BasicApplication {
	
	private static Logger log = LoggerFactory.getLogger(BasicApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(BasicApplication.class, args);
		log.info("启动成功");
	}

	@Bean
	RestTemplate restTemplate() {
		return new RestTemplate();
	}
}
